Vue.component('regionSelect', {
    template: '<select class="form-control" style="width: 100%;" v-on:change="changesearch">\n' +
        '<option selected="selected" value="0">全部场馆</option>\n' +
        '<option v-for="region in regions" :value="region.tregionId">{{region.tregionName}}</option>\n' +
        '</select>',
    props:{
        regions:{
            type:Array,
            default:[
                {
                    "tregionName": '请选择场馆',
                    "tregionId": 0
                }
            ]
        }
    },
    methods: {
        changesearch() {
            return this.$emit("searchMethod");
        }
    }
});
